package bean;

public class ColorCheckBean {

	private int x = 0;

	private int y = 0;

	private int rgb = 0;

	public ColorCheckBean(int x, int y, int rgbXp, int rgb7) {
		this.x = x;
		this.y = y;
		this.rgb = System.getProperty("os.name").equals("Windows XP") ? rgbXp
				: rgb7;
	}

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

	public boolean isMatch(int rgb) {
		return this.rgb == rgb;
	}

}
